<template>
  <div>
    {{msg}}
  </div>
</template>

<script>
export default {
  name: 'children_page',
  data () {
    return {
      msg: '测试子路由页面！',
    }
  },
   mounted(){
     //打开页面就提示
     this.openNotification()
   },
   methods: {
     openNotification() {
      this.$notification.open({
        message: this.msg,
        description:this.msg,
        onClick: () => {
          console.log('关闭通知！');
        },
      });
    },
  },
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>

</style>
